From: Keir Fraser Date: Mon, 6 Apr 2009 12:49:59 +0000 (+0100) Subject: xend: Use AUTO_PHP_SLOT where it ought to be X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~13989^2~5 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22Dat/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22Dat?a=commitdiff_plain;h=b812d1ddc4f23d3781fefff6fdcac9d247ab7ebb;p=xen.git xend: Use AUTO_PHP_SLOT where it ought to be Signed-off-by: Simon Horman --- diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py index 2d42927b10..644831b87d 100644 --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -620,7 +620,7 @@ class XendDomainInfo: pci_devs = pci_conf['devs'] for x in pci_devs: if (int(x['vslt'], 16) == int(new_dev['vslt'], 16) and - int(x['vslt'], 16) != 0 ): + int(x['vslt'], 16) != AUTO_PHP_SLOT): raise VmError("vslot %s already have a device." % (new_dev['vslt'])) if (int(x['domain'], 16) == int(new_dev['domain'], 16) and @@ -1053,7 +1053,7 @@ class XendDomainInfo: if devnum >= pci_len: raise VmError("Device @ vslot 0x%x doesn't exist." % (vslot)) - if vslot == 0: + if vslot == AUTO_PHP_SLOT: raise VmError("Device @ vslot 0x%x do not support hotplug." % (vslot)) # Check the co-assignment.